#include <iostream>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdlib.h>

using namespace std;

void myhandler(int signo)
{
    cout << "process get a signal: " << signo <<endl;
    exit(-1);
}

int main()
{
    signal(SIGFPE,myhandler);
    int a = 12;
    a/=0;
    cout<<"代码会执行到此处吗？"<<endl;
    return 0;
}